package com.qingke.beSuper2.pojo;

import java.util.List;

public class Question {
	long id; 
	String  value;
	int  credit;
	boolean isOpen;
	Player player;
	Player from;
	public Question(long id, String value, Player player, int credit){
		this.id = id ;
		this.value= value;
		this.player = player;
		this.credit= credit;
	}
	
	public boolean isOpen() {
		return isOpen;
	}
	public void setOpen(boolean isOpen) {
		this.isOpen = isOpen;
	}
	private List<Question> questions;
	private List<Answer> answers;
	public Question(long id, String value,int  credit, boolean isOpen){
		this.id = id ;
		this.value= value;
		this.credit=credit;
		this.isOpen=isOpen;
	}
	public List<Question> getQuestions() {
		return questions;
	}
	public void setQuestions(List<Question> questions) {
		this.questions = questions;
	}
	public List<Answer> getAnswers() {
		return answers;
	}
	public void setAnswers(List<Answer> answers) {
		this.answers = answers;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getCredit() {
		return credit;
	}

	public void setCredit(int credit) {
		this.credit = credit;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Player getFrom() {
		return from;
	}

	public void setFrom(Player from) {
		this.from = from;
	}
}
